using System.Linq;

namespace Flood.FloodStrategies
{
	public abstract class FloodStrategyBase
	{
		protected static int CountDryAdjacentSquares(Shape moistShape)
		{
			return moistShape.DryAdjacentShapes.Sum(shape => shape.Parts.Count);
		}
	}
}